package com.cps.framecommon.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用Response枚举类
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum {

    /**
     * 错误码及描述定义
     */
    COMMON_SUCCESS(200, "请求成功"),
    SYSTEM_FAIL(81040001, "请求失败"),
    SYSTEM_ERROR(81040002, "系统异常"),
    DEVICE_ID_NULL_EXCEPTION(81040003, "deviceId不能为空"),
    PARAM_EXCEPTION(81040009, "参数异常"),
    USER_ID_NULL_EXCEPTION(81040012, "userId不能为空"),
    PAGE_NUM_SIZE_NULL_EXCEPTION(81040016, "pageNum和pageSize都不能为空"),
    HEADER_NULL_EXCEPTION(81040019, "请求头空值异常"),
    ;

    private final Integer code;

    private final String message;

}
